package com.yonghui.summer.dao.demo.provider;

import java.util.Map;

/**
 * @auther yangchuan
 * @date 2021-03-22 17:45
 */
public class UserProvider {


    public static String findByName(Map<String,Object> params){

        StringBuilder sb = new StringBuilder();
        sb.append("select * from user where 1=1");
        if(params.get("name") != null){
            sb.append(" name = #{name}");
        }

        return sb.toString();
    }
}
